using System;
using System.Collections.Generic;
using System.Text;
using FluentNHibernate.Mapping;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{


    public class PipeNetManometryMap : ClassMap<PipeNetManometry>
    {

        public PipeNetManometryMap()
        {
            Table("Tbt_PipeNetManometry");
            Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
            Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Pipeline>(x => x.Pl, "EpcNO").PropertyRef(e => e.EpcNO).ReadOnly();
            Map(x => x.MeasureDt).Column("MeasureDt").Not.Nullable();
            Map(x => x.WaterPressure).Column("WaterPressure").Not.Nullable();
            Map(x => x.Style).Column("Style").Not.Nullable();
            Map(x => x.JzWaterPressure).Column("JzWaterPressure");
            Map(x => x.OperateEmp).Column("OperateEmp").Not.Nullable();
            Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
